package com.cd2cd.code_template.util.vertify.model.dto;


import javax.validation.constraints.NotNull;

/**
 * 传输用户验证信息
 */
public class UserValidateDto {

    @NotNull(groups = {ApplyImage.class,VerifyCode.class,ApplyKey.class} ,message = "用户名不可为空")
    String username;
    String answer;
    @NotNull(groups = {ApplyImage.class,VerifyCode.class} ,message = "验证码类型参数不可为空")
    String type;

    /**
     * TOTP申请类型
     */
    @NotNull(groups = {ApplyKey.class} ,message = "申请用户类型参数不可为空")
    String applyType;

    public String getApplyType() {
        return applyType;
    }

    public void setApplyType(String applyType) {
        this.applyType = applyType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public enum  ApplyType{
        /**
         * 普通用户
         */
        PLATFUSER,
        /**
         * 系统用户
         */
        SYSUSER;
    }

     public interface ApplyKey{}
    public interface ApplyImage{}
    public interface VerifyCode{}
}
